/*
 * @Date: 2020-05-31 17:19:50
 * @LastEditors: 挺哥
 * @LastEditTime: 2020-05-31 18:36:58
 * @FilePath: \myapp\src\models\home.js
 */

import { getBannerList } from '@/services/home';

export default {
  namespace: 'home',
  state: {
    userInfo: {},
  },
  effects: {
    *getBannerList({ payload, callback }, { call, put }) {
      const response = yield call(getBannerList, payload);

      if (response.code == 200) {
        callback(response);
      }
    },
  },
  reducers: {},
};
